package top.lidee.common.service.twice.management.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import top.lidee.common.service.twice.management.MtProvincesNumTableService;
import top.lidee.framework.result.PageUtils;
import top.lidee.module.backendApi.twice.page.Query;
import top.lidee.repository.mapper.twice.management.MtProvincesNumTableMapper;
import top.lidee.repository.model.twice.pojo.management.MtProvincesNumTableEntity;

import java.util.Map;

@Service("mtProvincesNumTableService")
public class MtProvincesNumTableServiceImpl extends ServiceImpl<MtProvincesNumTableMapper, MtProvincesNumTableEntity> implements MtProvincesNumTableService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MtProvincesNumTableEntity> page = this.page(
                new Query<MtProvincesNumTableEntity>().getPage(params),
                new QueryWrapper<MtProvincesNumTableEntity>()
        );

        return new PageUtils(page);
    }

}